#define ST_UI_BUTTON_One		176/256, 217/256, 234/256
#define ST_UI_BUTTON_Center		255/256, 172/256, 38/256
#define ST_UI_BUTTON_Two		177/256, 225/256, 192/256

class ST_ui_Targets {
	idd = 24386;
	movingEnable = 0;
	enableSimulation = 1;
	onLoad = "[_this,6] spawn ST_fnc_dlgInit";

	class controls {
		class Background : CUI_Frame {
			y = CUI_Row_Y(0);
			h = CUI_Row_DY(0,3);
			w = CUI_Box_W;
		};
		class TargetInterfaceCaption : CUI_Caption {
			text = $STR_ST_DLG_TITLE;
			y = CUI_Row_Y(0);
			w = CUI_Box_W;
		};
		class TargetSelectionCaption : CUI_Caption {
			text = $STR_ST_DLG_SELECT_TYPE;
			y = CUI_Row_Y(1);
			w = CUI_Box_W / 2;
		};
		class TargetSelection : CUI_Combo {
			idc = 1;
			y = CUI_Row_Y(1);
			x = CUI_Box_X(1) - CUI_Box_W / 2;
			w = CUI_Box_W / 2;
			wholeHeight = 9 * CUI_Row_H;
		};
		class TargetOrientationCaption : CUI_Caption {
			text = $STR_ST_DLG_SELECT_DIRECTION;
			y = CUI_Row_Y(2);
			w = CUI_Box_W / 2;
		};
		class TargetOrientation : CUI_Combo {
			idc = 2;
			y = CUI_Row_Y(2);
			x = CUI_Box_X(1) - CUI_Box_W / 2;
			w = CUI_Box_W / 2;
			wholeHeight = 9 * CUI_Row_H;
		};
		
		// BUTTONS - 100M
		class CreateTarget100Left : CUI_Button {
			idc = 11;
			text = $STR_ST_DLG_TARGET_100_LEFT;
			y = CUI_Row_Y(4);
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),1,1] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_One, 3/5};
		};
		class CreateTarget100Moving : CUI_Button {
			idc = 12;
			text = $STR_ST_DLG_TARGET_100_MOVING;
			y = CUI_Row_Y(4);
			x = CUI_Box_X(1) - CUI_Box_W * 3/4;
			w = CUI_Box_W / 2;
			action = "[(lbCurSel 1),(lbCurSel 2),1,2] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Center, 3/5};
		};
		class CreateTarget100Right : CUI_Button {
			idc = 13;
			text = $STR_ST_DLG_TARGET_100_RIGHT;
			y = CUI_Row_Y(4);
			x = CUI_Box_X(1) - CUI_Box_W / 4;
			w = CUI_Box_W /4;
			action = "[(lbCurSel 1),(lbCurSel 2),1,3] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Two, 3/5};
		};
		
		// BUTTONS - 200M
		class CreateTarget200Left : CUI_Button {
			idc = 21;
			text = $STR_ST_DLG_TARGET_200_LEFT;
			y = CUI_Row_Y(5);
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),2,1] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Two, 3/5};
		};
		class CreateTarget200Moving : CUI_Button {
			idc = 22;
			text = $STR_ST_DLG_TARGET_200_MOVING;
			y = CUI_Row_Y(5);
			x = CUI_Box_X(1) - CUI_Box_W * 3/4;
			w = CUI_Box_W / 2;
			action = "[(lbCurSel 1),(lbCurSel 2),2,2] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Center, 3/5};
		};
		class CreateTarget200Right : CUI_Button {
			idc = 23;
			text = $STR_ST_DLG_TARGET_200_RIGHT;
			y = CUI_Row_Y(5);
			x = CUI_Box_X(1) - CUI_Box_W / 4;
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),2,3] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_One, 3/5};
		};
		
		// BUTTONS - 300M
		class CreateTarget300Left : CUI_Button {
			idc = 31;
			text = $STR_ST_DLG_TARGET_300_LEFT;
			y = CUI_Row_Y(6);
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),3,1] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_One, 3/5};
		};
		class CreateTarget300Moving : CUI_Button {
			idc = 32;
			text = $STR_ST_DLG_TARGET_300_MOVING;
			y = CUI_Row_Y(6);
			x = CUI_Box_X(1) - CUI_Box_W * 3/4;
			w = CUI_Box_W / 2;
			action = "[(lbCurSel 1),(lbCurSel 2),3,2] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Center, 3/5};
		};
		class CreateTarget300Right : CUI_Button {
			idc = 33;
			text = $STR_ST_DLG_TARGET_300_RIGHT;
			y = CUI_Row_Y(6);
			x = CUI_Box_X(1) - CUI_Box_W / 4;
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),3,3] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Two, 3/5};
		};
		
		// BUTTONS - 400M
		class CreateTarget400Left : CUI_Button {
			idc = 41;
			text = $STR_ST_DLG_TARGET_400_LEFT;
			y = CUI_Row_Y(7);
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),4,1] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Two, 3/5};
		};
		class CreateTarget400Moving : CUI_Button {
			idc = 42;
			text = $STR_ST_DLG_TARGET_400_MOVING;
			y = CUI_Row_Y(7);
			x = CUI_Box_X(1) - CUI_Box_W * 3/4;
			w = CUI_Box_W / 2;
			action = "[(lbCurSel 1),(lbCurSel 2),4,2] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Center, 3/5};
		};
		class CreateTarget400Right : CUI_Button {
			idc = 43;
			text = $STR_ST_DLG_TARGET_400_RIGHT;
			y = CUI_Row_Y(7);
			x = CUI_Box_X(1) - CUI_Box_W / 4;
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),4,3] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_One, 3/5};
		};
		
		// BUTTONS - 500M
		class CreateTarget500Left : CUI_Button {
			idc = 51;
			text = $STR_ST_DLG_TARGET_500_LEFT;
			y = CUI_Row_Y(8);
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),5,1] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_One, 3/5};
		};
		class CreateTarget500Moving : CUI_Button {
			idc = 52;
			text = $STR_ST_DLG_TARGET_500_MOVING;
			y = CUI_Row_Y(8);
			x = CUI_Box_X(1) - CUI_Box_W * 3/4;
			w = CUI_Box_W / 2;
			action = "[(lbCurSel 1),(lbCurSel 2),5,2] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Center, 3/5};
		};
		class CreateTarget500Right : CUI_Button {
			idc = 53;
			text = $STR_ST_DLG_TARGET_500_RIGHT;
			y = CUI_Row_Y(8);
			x = CUI_Box_X(1) - CUI_Box_W / 4;
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),5,3] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Two, 3/5};
		};
		
		// BUTTONS - 600M
		class CreateTarget600Left : CUI_Button {
			idc = 61;
			text = $STR_ST_DLG_TARGET_600_LEFT;
			y = CUI_Row_Y(9);
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),6,1] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Two, 3/5};
		};
		class CreateTarget600Moving : CUI_Button {
			idc = 62;
			text = $STR_ST_DLG_TARGET_600_MOVING;
			y = CUI_Row_Y(9);
			x = CUI_Box_X(1) - CUI_Box_W * 3/4;
			w = CUI_Box_W / 2;
			action = "[(lbCurSel 1),(lbCurSel 2),6,2] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Center, 3/5};
		};
		class CreateTarget600Right : CUI_Button {
			idc = 63;
			text = $STR_ST_DLG_TARGET_600_RIGHT;
			y = CUI_Row_Y(9);
			x = CUI_Box_X(1) - CUI_Box_W / 4;
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),6,3] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_One, 3/5};
		};
		
		// BUTTONS - 1000M
		class CreateTarget1000Left : CUI_Button {
			idc = 101;
			text = $STR_ST_DLG_TARGET_1000_LEFT;
			y = CUI_Row_Y(10);
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),10,1] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Two, 3/5};
		};
		class CreateTarget1000Moving : CUI_Button {
			idc = 102;
			text = $STR_ST_DLG_TARGET_1000_MOVING;
			y = CUI_Row_Y(10);
			x = CUI_Box_X(1) - CUI_Box_W * 3/4;
			w = CUI_Box_W / 2;
			action = "[(lbCurSel 1),(lbCurSel 2),10,2] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Center, 3/5};
		};
		class CreateTarget1000Right : CUI_Button {
			idc = 103;
			text = $STR_ST_DLG_TARGET_1000_RIGHT;
			y = CUI_Row_Y(10);
			x = CUI_Box_X(1) - CUI_Box_W / 4;
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),10,3] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_One, 3/5};
		};
		
		// BUTTONS - 1200M
		class CreateTarget1200Left : CUI_Button {
			idc = 121;
			text = $STR_ST_DLG_TARGET_1200_LEFT;
			y = CUI_Row_Y(11);
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),12,1] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Two, 3/5};
		};
		class CreateTarget1200Moving : CUI_Button {
			idc = 122;
			text = $STR_ST_DLG_TARGET_1200_MOVING;
			y = CUI_Row_Y(11);
			x = CUI_Box_X(1) - CUI_Box_W * 3/4;
			w = CUI_Box_W / 2;
			action = "[(lbCurSel 1),(lbCurSel 2),12,2] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_Center, 3/5};
		};
		class CreateTarget1200Right : CUI_Button {
			idc = 123;
			text = $STR_ST_DLG_TARGET_1200_RIGHT;
			y = CUI_Row_Y(11);
			x = CUI_Box_X(1) - CUI_Box_W / 4;
			w = CUI_Box_W / 4;
			action = "[(lbCurSel 1),(lbCurSel 2),12,3] call ST_fnc_dlgClick";
			colorBackground[] = {ST_UI_BUTTON_One, 3/5};
		};

		class ResetScores : CUI_Button {
			text = $STR_ST_DLG_RESET_SCORES;
			w = CUI_Box_W;
			y = CUI_Row_Y(13);
			action = "[] call ST_fnc_dlgResetScores";
		};

		class Clear : CUI_Button {
			text = $STR_ST_DLG_CLEAR;
			w = CUI_Box_W;
			y = CUI_Row_Y(14);
			action = "[] call ST_fnc_dlgClear";
		};

		class Close : CUI_Button {
			text = $STR_ST_DLG_CLOSE;
			w = CUI_Box_W;
			y = CUI_Row_Y(16);
			action = "closeDialog 0;";
		};
	};
};